package com.mapper;

import com.pojo.Floormanager;
import com.vo.FloorManagerVo;

import java.util.List;

public interface FloormanagerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Floormanager record);

    int insertSelective(Floormanager record);

    Floormanager selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Floormanager record);

    int updateByPrimaryKey(Floormanager record);

    /*
    * 查询所有楼栋
    * */

    public List<Floormanager> selectallFloor(FloorManagerVo floorManagerVo);

    /**
     * 根据小区外键查询所有楼栋
     */
    public List<Floormanager> selectFloorByPlotid(Integer plotid);
    /*
    * 根据id查询小区外键
    * */
    public int selectplotidbyid(Integer id);

    /**
     * 根据小区查询楼栋
     */
    public int selectfloorbyplotid(Integer id);

    /**
     * 根据小区id查询总栋数
     */
    public int selecttotalbyplotid(Integer id);
}